<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>登录 | 义务教育报告生成平台</title>
    {% load static %}
    <link rel="stylesheet" href="{% static 'css/register.css' %}">
</head>
<body>

<header class="p-6 flex items-center space-x-3">
    <h1 class="text-2xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-500 to-blue-600">
        义务教育报告生成平台
    </h1>
</header>

<div class="container">
    <h1>用户注册</h1>
    <form id="registerForm" method="post" action="{% url 'register' %}">
        <label for="name">姓名：</label>
        <input type="text" id="name" name="name" required>

        <label for="username">账号：</label>
        <input type="text" id="username" name="username" required>

        <label for="password">密码：</label>
        <input type="password" id="password" name="pwd" required>

        <button type="submit">注册</button>
    </form>
    {% if context %}
            <p style="color:deepskyblue;">{{ context }}</p>
        {% endif %}
    <p id="message"></p>
</div>
{% load static %}
{#<script src="{% static 'script/register.js' %}"></script>#}
</body>
</html>
